#ifndef PAGETRACTIONBLOCK_H
#define PAGETRACTIONBLOCK_H

#include <QWidget>
#include <QLabel>
#include "global_def.h"

#define ROWSINCOL_TB 12

namespace Ui {
class PageTractionBlock;
}

class PageTractionBlock : public QWidget
{
    Q_OBJECT

public:
    explicit PageTractionBlock(QWidget *parent = nullptr);
    ~PageTractionBlock();
    void setTBTrigStat(int index, int stat);
private:
    Ui::PageTractionBlock *ui;
signals:
    void signal_go_back();
    void signal_one_tbtrig_act(bool);
private slots:
    void on_Btn_Return_clicked();
private:
    QList <QLabel*> m_lTBTrigLabels;
    QList <uint8_t> m_lTBRigStats;
    QStringList m_lTBTrigReasons;
    uint m_nTopSpace;
    uint m_nBottomSpace;
    uint m_nHSpace;
    uint m_nVSpace;
    uint m_nSideSpace;
    uint m_nLabelLen;
    uint m_nLabelHeight;
    uint m_nStartx,m_nStarty;
private:
    void InitTBTrigLabels();
};

#endif // PAGETRACTIONBLOCK_H
